package org.jeecg.modules.portal.facade.impl;



import org.springframework.stereotype.Service;


import org.jeecg.base.facade.impl.IFacadeImpl;
import org.jeecg.modules.portal.entity.News;
import org.jeecg.modules.portal.facade.INewsFacade;
import org.jeecg.modules.portal.service.INewsService;
import org.jeecg.modules.portal.vo.NewsVo;
import org.springframework.beans.BeanUtils;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 新闻
 * @Author: zj
 * @Date:   2020-05-26
 * @Version: V1.0
 */


@Service
public class NewsFacadeImpl extends IFacadeImpl<NewsVo, News, INewsService>  implements INewsFacade<NewsVo, News> {
        @Autowired
        private INewsService newsService;


         @Override
         public News po2Vo(NewsVo vo) {
                News po = new News();
                if(vo==null){
                   return null;
                }
                BeanUtils.copyProperties(vo, po);
                return po;
         }

         @Override
         public NewsVo vo2Po(News po) {
                NewsVo vo = new NewsVo();
                 if(po==null){
                     return null;
                  }
                BeanUtils.copyProperties(po, vo);
                return vo;
         }

}
